package samples.chapter05;


import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface Chapter05BookMapper {
    int addBook(Chapter05Book book);

    int deleteBook(int id);

    int updateBook(Chapter05Book book);

    Chapter05Book getBookById(int id);

    List<Chapter05Book> getAllBooks();
}
